﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ToolLog.aspx.cs" Inherits="Manage_System_ToolLog" %>

<html>
<head>
    <!--#include file="../js/html_head.inc"-->
    <link rel="stylesheet" type="text/css" href="../Themes/<%=ManageHelper.GetTheme()%>/style.css" />
</head>
<body>
    <%=ManageHelper.PageSucMsg()!=""?"<div class='msg_succeed'>"+ManageHelper.PageSucMsg()+"</div>":""%>
    <%=ManageHelper.PageErrMsg()!=""?"<div class='msg_failed'>"+ManageHelper.PageErrMsg()+"</div>":""%>
    <div class="mycolumn">
        <div class="columntitle">
            日志搜索</div>
        <form action="?">

            <script type="text/javascript">
    $(document).ready(function(){
          $("#StartTime").bind("focus", function(){
          WdatePicker({isShowClear:false,readOnly:false})
        });
        
        $("#EndTime").bind("focus", function(){
          WdatePicker({isShowClear:false,readOnly:false})
        });
    });
            </script>

            <table width="100%" border="0" align="center" cellpadding="2" cellspacing="2">
                <tbody>
                    <tr class="summary-title" align="left">
                        <td align="left" style="padding-left: 10px; line-height: 26px;" class="tdsearch">
                            用户：<select name="UserID" id="UserID">
                                <%=KeRui.BLL.Common.GetSelectList(UserID,KeRui.BLL.AdminLog.GetUser()) %>
                                <option value='0' >系统</option>
                            </select>
                            &nbsp;&nbsp;模块：<input name="Flag" type="text" value="<%=Flag %>" /><input name="FlagLike"
                                style="border: 0px; width: 16px; height: 16px" type="checkbox" value="1" <%=FlagLike==1?" checked ":"" %> />模糊
                            <br />
                            开始时间：<input name="StartTime" id="StartTime" type="text" value="<%=StartTime %>" class="Wdate" />
                            结束时间：<input name="EndTime" id="EndTime" type="text" value="<%=EndTime %>" class="Wdate" />
                            <input type="submit" value="搜 索" class="button" style="margin-bottom: 0px" />
                        </td>
                    </tr>
                </tbody>
            </table>
        </form>
    </div>
    <div class="column">
        <div class="columntitle">
            管理系统日志</div>
        <table cellspacing="0" cellpadding="0" rules="all" align="center" border="0" id="MyDataGrid"
            style="border-width: 0px; width: 100%; border-collapse: collapse;">
            <tr class="summary-title" style="height: 25px" align="center">
                <td style="width: 50px;">用户</td>
                <td style="width: 100px;">操作IP</td>
                <td style="width: 180px;">模块</td>
                <td align="left">日志</td>
                <td style="width: 120px;">时间</td>
            </tr>
            <%
                foreach (KeRui.Model.AdminLog log in list)
                {
            %>
            <tr class="tdbg" onmouseover="this.className='tdbg-dark';" onmouseout="this.className='tdbg';" style="height: 25px;" align="center">
                <td><%=(log.UserID == 0 ? "系统" : (log.UserID > 0 ? log.Username :"未授权" ))%></td>
                <td title="<%=KeRui.Common.IPQuery.IPQuery.Web(log.CreateIP).FullLocal%>"><%=log.CreateIP%></td>
                <td><%=log.Flag%></td>
                <td align="left"><%=log.Log%></td>
                <td><%=log.CreateTime%></td>
            </tr>
            <%
                }
            %>
        </table>
    </div>
    <%=PageShow %>
</body>
</html>
